runtime.mheap.lock (field)

75 uses

	runtime (current package)
		arena.go#L816: 		lock(&mheap_.lock)
		arena.go#L818: 		unlock(&mheap_.lock)
		arena.go#L901: 	lock(&h.lock)
		arena.go#L935: 			unlock(&h.lock)
		arena.go#L940: 	unlock(&h.lock)
		malloc.go#L622: 	assertLockHeld(&h.lock)
		malloc.go#L868: 	lock(&h.lock)
		malloc.go#L870: 		unlock(&h.lock)
		malloc.go#L874: 	unlock(&h.lock)
		mcache.go#L88: 		lock(&mheap_.lock)
		mcache.go#L91: 		unlock(&mheap_.lock)
		mcache.go#L116: 		lock(&mheap_.lock)
		mcache.go#L118: 		unlock(&mheap_.lock)
		metrics.go#L649: 		lock(&mheap_.lock)
		metrics.go#L654: 		unlock(&mheap_.lock)
		mgc.go#L1118: 					lock(&mheap_.lock)
		mgc.go#L1120: 					unlock(&mheap_.lock)
		mgc.go#L1553: 	lock(&mheap_.lock)
		mgc.go#L1560: 	unlock(&mheap_.lock)
		mgc.go#L1567: 		lock(&mheap_.lock)
		mgc.go#L1569: 		unlock(&mheap_.lock)
		mgc.go#L1615: 	lock(&mheap_.lock)
		mgc.go#L1617: 	unlock(&mheap_.lock)
		mgcpacer.go#L1185: 		assertWorldStoppedOrLockHeld(&mheap_.lock)
		mgcpacer.go#L1245: 		assertWorldStoppedOrLockHeld(&mheap_.lock)
		mgcpacer.go#L1262: 		lock(&mheap_.lock)
		mgcpacer.go#L1265: 		unlock(&mheap_.lock)
		mgcpacer.go#L1294: 		assertWorldStoppedOrLockHeld(&mheap_.lock)
		mgcpacer.go#L1309: 		lock(&mheap_.lock)
		mgcpacer.go#L1314: 			unlock(&mheap_.lock)
		mgcpacer.go#L1318: 		unlock(&mheap_.lock)
		mgcpacer.go#L1426: 	assertWorldStoppedOrLockHeld(&mheap_.lock)
		mgcscavenge.go#L168: 	assertWorldStoppedOrLockHeld(&mheap_.lock)
		mgcsweep.go#L427: 				lock(&mheap_.lock)
		mgcsweep.go#L439: 				unlock(&mheap_.lock)
		mgcsweep.go#L728: 			lock(&mheap_.lock)
		mgcsweep.go#L731: 			unlock(&mheap_.lock)
		mgcsweep.go#L947: 	assertWorldStoppedOrLockHeld(&mheap_.lock)
		mgcwork.go#L119: 	lockWithRankMayAcquire(&mheap_.lock, lockRankMheap)
		mgcwork.go#L363: 	lockWithRankMayAcquire(&mheap_.lock, lockRankMheap)
		mheap.go#L66: 	lock mutex
		mheap.go#L536: 	assertLockHeld(&h.lock)
		mheap.go#L753: 	lockInit(&h.lock, lockRankMheap)
		mheap.go#L779: 	h.pages.init(&h.lock, &memstats.gcMiscSys, false)
		mheap.go#L834: 			lock(&h.lock)
		mheap.go#L849: 		unlock(&h.lock)
		mheap.go#L870: 	assertLockHeld(&h.lock)
		mheap.go#L904: 						unlock(&h.lock)
		mheap.go#L908: 						lock(&h.lock)
		mheap.go#L925: 		unlock(&h.lock)
		mheap.go#L928: 		lock(&h.lock)
		mheap.go#L931: 	assertLockHeld(&h.lock) // Must be locked on return.
		mheap.go#L1112: 	assertLockHeld(&h.lock)
		mheap.go#L1144: 	assertLockHeld(&h.lock)
		mheap.go#L1195: 			lock(&h.lock)
		mheap.go#L1197: 			unlock(&h.lock)
		mheap.go#L1214: 	lock(&h.lock)
		mheap.go#L1233: 				unlock(&h.lock)
		mheap.go#L1252: 				unlock(&h.lock)
		mheap.go#L1266: 	unlock(&h.lock)
		mheap.go#L1465: 	assertLockHeld(&h.lock)
		mheap.go#L1553: 		lock(&h.lock)
		mheap.go#L1567: 		unlock(&h.lock)
		mheap.go#L1586: 	lock(&h.lock)
		mheap.go#L1588: 	unlock(&h.lock)
		mheap.go#L1592: 	assertLockHeld(&h.lock)
		mpagealloc.go#L452: 	lock(&mheap_.lock)
		mpagealloc.go#L454: 		unlock(&mheap_.lock)
		mpagealloc.go#L461: 	unlock(&mheap_.lock)
		mstats.go#L575: 	lock(&mheap_.lock)
		mstats.go#L596: 	unlock(&mheap_.lock)
		proc.go#L5144: 		lock(&mheap_.lock)
		proc.go#L5146: 		unlock(&mheap_.lock)
		stack.go#L196: 	lockWithRankMayAcquire(&mheap_.lock, lockRankMheap)
		stack.go#L404: 		lockWithRankMayAcquire(&mheap_.lock, lockRankMheap)